
<!DOCTYPE html>
<html>
<head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /><title>
	炮弹走私
</title><script language="javascript" type="text/javascript"> 
            var applicationPath = "";
        </script>
<meta http-equiv="content-language" content="zh-CN" />
<link rel="icon" type="image/x-icon" href="http://www.wxmaiyatang.cn/favicon.ico" media="screen" />
<link rel="shortcut icon" type="image/x-icon" href="http://www.wxmaiyatang.cn/favicon.ico" media="screen" />
<meta name="author" content="Hishop development team" />
<meta name="GENERATOR" content="微分销" />
<meta name="renderer" content="webkit" /><link rel="stylesheet" href="http://apps.bdimg.com/libs/bootstrap/3.3.4/css/bootstrap.min.css" />
<script type="text/javascript" src="../admin/js/browserdetect.js"></script>
<script src="http://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js" type="text/javascript"></script>
<script src="http://apps.bdimg.com/libs/bootstrap/3.3.4/js/bootstrap.min.js" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" href="../admin/css/bootstrap-datetimepicker.min.css" />
<script type="text/javascript" src="../admin/js/bootstrap-datetimepicker.js"></script>
<script type="text/javascript" src="../admin/js/bootstrap-datetimepicker.zh-CN.js"></script>
<script type="text/javascript" src="../admin/js/jquery.formvalidation.js"></script>
<link rel="stylesheet" href="../admin/css/common.css" />
<script src="../admin/js/Framenew.js?3.3.1bk1"></script>
<meta name="keywords" /><meta name="description" />
    <!--[if lt IE 9]>
      <script src="//cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>
      <script src="//cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
    
    <link rel="stylesheet" href="../css/bootstrapSwitch.css" />
    <script type="text/javascript" src="../js/bootstrapSwitch.js"></script>
    <style type="text/css">
        .errorInput{border:1px,solid;border-color:#a94442;}
        .normalInput{border:1px,solid;border-color:#cccccc;}
    </style>
    <script type="text/javascript">
        $(document).ready(function () {
            $('input[type=text]').each(function () {
                $(this).on('blur', function () {
                    id = $(this).attr("id");
                    var btn;

                    if (id.indexOf("txt_ShoppingScore") > 0 || id.indexOf("txt_OrderValue") > 0 || id.indexOf("txt_shopping_RewardScore") > 0) {
                        btn = $('#ctl00_ContentPlaceHolder1_btn_shoppingSave');
                        var flag1 = testInput($('#ctl00_ContentPlaceHolder1_txt_ShoppingScore'));
                        var flag2 = testInput($('#ctl00_ContentPlaceHolder1_txt_OrderValue'));
                        var flag3 = testInput($('#ctl00_ContentPlaceHolder1_txt_shopping_RewardScore'));
                        if (!(flag1 && flag2 && flag3)) {
                            $(btn).attr('disabled', 'disabled');
                        }
                        else {
                            $(btn).removeAttr('disabled');
                        }
                    }


                });

            });

            $('#mySwitch').on('switch-change', function (e, data) {
                var type = "1";
                var enable = data.value;
                $.ajax({
                    type: "post",
                    url: "ScoreConfigHandler.ashx",
                    data: { type: type, enable: enable },
                    dataType: "text",
                    success: function (data) {
                        if (data == "保存成功") {
                            if (enable == true) {
                                $('#shoppingmainDiv').show();
                            }
                            else {
                                $('#shoppingmainDiv').hide();
                            }
                        }
                        else {
                            ShowMsg("修改失败（" + data + ")");
                        }
                    }
                });
            });

            $('#ctl00_ContentPlaceHolder1_chk').click(function () {
                if ($(this).attr("checked") == "checked") {
                    $(this).attr("checked", false);
                } else {
                    $(this).attr("checked", true);
                }
                var chk_enable = $(this).attr("checked");
                setCheckEnable(chk_enable);
            });
            var chk_enable = $('#ctl00_ContentPlaceHolder1_chk').attr("checked");
            setCheckEnable(chk_enable);
        });

        function setCheckEnable(val)
        {
            if (val == "checked") {
                $('#ctl00_ContentPlaceHolder1_txt_OrderValue').removeAttr("disabled");
                $('#ctl00_ContentPlaceHolder1_txt_shopping_RewardScore').removeAttr("disabled");
            }
            else {
                $('#ctl00_ContentPlaceHolder1_txt_OrderValue').attr("disabled", "disabled");
                $('#ctl00_ContentPlaceHolder1_txt_shopping_RewardScore').attr("disabled", "disabled");
            }
        }


        function testInput(obj) {
            var id = $(obj).attr("id");
            var content = $(obj).val();
            var regex;
            var parent;
            var btn;
            if (id == "ctl00_ContentPlaceHolder1_txtEverDayScore") {
                regex = /^[0-9]*$/;
                parent = $(obj).parent().parent().parent();
            }
            if (id == "ctl00_ContentPlaceHolder1_txtStraightDay") {
                regex = /^[0-9]*$/;
                parent = $(obj).parent().parent().parent();
            }
            if (id == "ctl00_ContentPlaceHolder1_txt_sign_RewardScore") {
                regex = /^[0-9]*$/;
                parent = $(obj).parent().parent().parent();
            }
            if (id == "ctl00_ContentPlaceHolder1_txt_ShareScore") {
                regex = /^[0-9]*$/;
                parent = $(obj).parent().parent().parent();
            }
            if (id == "ctl00_ContentPlaceHolder1_txt_ShoppingScore") {
                regex = /^[0-9]*$/;
                parent = null
            }
            if (id == "ctl00_ContentPlaceHolder1_txt_OrderValue") {
                regex = /^[0-9]+\.{0,1}[0-9]{0,2}$/;
            }
            if (id == "ctl00_ContentPlaceHolder1_txt_shopping_RewardScore") {
                regex = /^[0-9]*$/;
            }

            if (testRegex(regex, content)) {
                if (parent != null) {
                    $(parent).removeClass();
                    $(parent).addClass("form-group");
                }
                else {
                    $(obj).removeClass();
                    $(obj).addClass("form-control");
                }
                return true;
            }
            else {
                if (parent != null) {
                    $(parent).removeClass();
                    $(parent).addClass("form-group has-error");
                }
                else {
                    $(obj).removeClass();
                    $(obj).addClass("form-control errorInput");
                }
                return false;
            }
        }

        function testRegex(rgx,str)
        {
            if (str == "") return true;
            return result = rgx.test(str);
        }


        function showMsg(msg) {
            HiTipsShow(msg, 'success');
        }

    </script>
</head>
<body class="theme theme--blue">

    <header class="ui-header navbar-fixed-top">
        <div class="ui-header-inner clearfix">
            <h1 class="ui-header-logo">
                <a href="/admin/" title="管理后台">
                    <span class="version"><i>3.4</i></span>
                </a>
            </h1>
            <nav class="ui-header-nav">
                <ul class="clearfix">
<li class="divide">|</li>
<li mid="m01"><a href="../Default.html" title="店铺">店铺</a></li>
<li mid="m02"><a href="../productonsales.html" title="商品">商品</a></li>
<li mid="m03"><a href="../manageorder.html" title="订单">订单</a></li>
<li class="divide">|</li>
<li class=" active" mid="m04"><a href="../MemberGaiKuang.html" title="会员">会员</a></li>
<li mid="m05"><a href="../DistributorSummary.html" title="分销">分销</a></li>
<li class="divide">|</li>
<li mid="m06"><a href="#" title="微信">微信</a></li>
<li mid="m07"><a href="#" title="微博">微博</a></li>
<li mid="m11"><a href="#" title="服务窗">服务窗</a></li>
<li class="divide">|</li>
<li mid="m08"><a href="#" title="营销">营销</a></li>
<li class="divide">|</li>
<li mid="m09"><a href="../Alipay.html" title="设置">设置</a></li>
<li mid="m10"><a href="../salereport.html" title="分析统计">分析统计</a></li>
</ul>

            </nav>
            <div class="ui-header-user ">
                <div class="customer-wrap">
                </div>
                <div class="dropdown hover dropdown-right">
                    <a href="javascript:;" class="dropdown-toggle" data-toggle="dropdown">
                        <span class="txt">
                            <span class="ellipsis team_name">炮弹走私</span><span class="dash"> - </span><span>admin</span>
                        </span>
                        <i class="caret"></i>
                    </a>
                    <ul class="dropdown-menu">
                        <li><a href="/admin/Settings/EditManager.aspx?UserID=1"><span class="glyphicon glyphicon-user"></span>个人信息</a></li>
                        <li><a href="/admin/Settings/EditManagerPassword.aspx?UserID=1"><span class="glyphicon glyphicon-list-alt"></span>修改密码</a></li>
                        <li class="divide"></li>
                        <li><a href="/Admin/LoginExit.aspx"><span class="glyphicon glyphicon-indent-right"></span>退出</a></li>
                    </ul>
                </div>
            </div>
        </div>
    </header>
    <div class="container">
        <div class="app">
            <div class="app-inner clearfix">

<form name="aspnetForm" method="post" action="setScore_shopping.aspx" id="aspnetForm" class="form-horizontal">
<div>
<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwUKLTU2NDg0OTA1OQ9kFgJmD2QWCAIBDxYCHgRUZXh0BYQKPHVsIGNsYXNzPSJjbGVhcmZpeCI+DQo8bGkgY2xhc3M9ImRpdmlkZSI+fDwvbGk+DQo8bGkgbWlkPSJtMDEiPjxhIGhyZWY9Ii9BZG1pbi9EZWZhdWx0LmFz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bWJlcmdyYWRlcy5hc3B4IiB0aXRsZT0i5Lya5ZGY562J57qnIj7kvJrlkZjnrYnnuqc8L2E+PC9saT4NCjxsaT48YSBocmVmPSIvQWRtaW4vbWVtYmVyL0N1c3RvbURpc3RyaWJ1dG9yTGlzdC5hc3B4IiB0aXRsZT0i5Lya5ZGY5YiG57uE6K6+572uIj7kvJrlkZjliIbnu4Torr7nva48L2E+PC9saT4NCjxsaT48YSBocmVmPSIvQWRtaW4vbWVtYmVyL01lbWJlcnNJbnRlZ3JhbFF1ZXJ5LmFzcHgiIHRpdGxlPSLkvJrlkZjnp6/liIbmn6Xor6IiPuS8muWRmOenr+WIhuafpeivojwvYT48L2xpPg0KPC91bD4NCjxlbSBjbGFzcz0iZ2x5cGhpY29uIGljby1odWl5dWFucyI+PC9lbT4NCjxzcGFuPuS8muWRmOenr+WIhuiuvue9rjwvc3Bhbj4NCjx1bCBpaWQ9Imh5aTAzIj4NCjxsaT48YSBocmVmPSIvQWRtaW4vbWVtYmVyL3NldFNjb3JlX3NpZ24uYXNweCIgdGl0bGU9IuetvuWIsOmAgeenr+WIhiI+562+5Yiw6YCB56ev5YiGPC9hPjwvbGk+DQo8bGkgY2xhc3M9IiBhY3RpdmUiPjxhIGhyZWY9Ii9BZG1pbi9tZW1iZXIvc2V0U2NvcmVfc2hvcHBpbmcuYXNweCIgdGl0bGU9Iui0reeJqemAgeenr+WIhiI+6LSt54mp6YCB56ev5YiGPC9hPjwvbGk+DQo8L3VsPg0KZBgBBR5fX0NvbnRyb2xzUmVxdWlyZVBvc3RCYWNrS2V5X18WAQUdY3RsMDAkQ29udGVudFBsYWNlSG9sZGVyMSRjaGu5Gr72zlzcjNT/DI7Y8474DDlVZA==" />
</div>

<div>

	<input type="hidden" name="__VIEWSTATEGENERATOR" id="__VIEWSTATEGENERATOR" value="BE9C54D0" />
</div>
    <input type="hidden" id="urlType"  value="shopping"/>
    <div class="page-header">
        <h2>会员积分设置</h2>        
    </div>
    <div class="play-tabs">

        <ul id="tabHeader" class="nav nav-tabs" role="tablist">
            <li role="presentation" id="signTab"><a href="setScore_sign.aspx">签到送积分</a></li>
            <li role="presentation" id="shoppingTab" class="active"><a href="setScore_shopping.aspx">购物送积分</a>
            </li>
        </ul>
        <div class="tab-content">
            <div role="tabpanel" class="tab-pane active" id="shoppingScoreDiv">               
                <div class="form-group">
                    <label for="" class="col-xs-2 control-label">是否开启</label>
                    <div class="col-xs-4">
                        <div class="switch" id="mySwitch">
                            <input type="checkbox" checked />
                        </div>
                    </div>                    
                </div>
                <div id="shoppingmainDiv" style="">
                    <div class="form-group">
                        <div class="form-inline">
                            <label for="" class="col-xs-2 control-label">购物成功每</label>
                            <div class="col-xs-6">
                                <input name="ctl00$ContentPlaceHolder1$txt_ShoppingScore" type="text" value="1" id="ctl00_ContentPlaceHolder1_txt_ShoppingScore" class="form-control" />
                                <label style="font-weight: normal; margin-left: 3px;">元奖励1分 （不包含运费）</label> 
                            </div>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="form-inline">                           
                            <label for="" class="col-xs-2 control-label"><input id="ctl00_ContentPlaceHolder1_chk" type="checkbox" name="ctl00$ContentPlaceHolder1$chk" checked="checked" /> 单笔订单满</label>
                            <div class="col-xs-6">             
                                <input name="ctl00$ContentPlaceHolder1$txt_OrderValue" type="text" value="100.00" id="ctl00_ContentPlaceHolder1_txt_OrderValue" class="form-control" style="width:100px;" />
                                <label style="font-weight: normal;margin-left: 3px;">元，奖励</label>
                                <input name="ctl00$ContentPlaceHolder1$txt_shopping_RewardScore" type="text" value="1" id="ctl00_ContentPlaceHolder1_txt_shopping_RewardScore" class="form-control" style="width:100px;" />
                                <label style="font-weight: normal; margin-left: 3px;">分</label>
                            </div>
                        </div>
                    </div>
                    <div class="form-group" style="width: 110%;">
                        <div class="col-xs-offset-2 marginl">
                            <input type="submit" name="ctl00$ContentPlaceHolder1$btn_shoppingSave" value="保存" id="ctl00_ContentPlaceHolder1_btn_shoppingSave" class="btn btn-success inputw100" />
                        </div>
                    </div>
                </div>
                
            </div>       
        </div>
    </div>
</form>

            </div>
        </div>
        <aside class="ui-sidebar sidebar" style="min-height: 533px;">
            <nav class="well" id="menu_left">
                <ul iid="hyi01">
<li><a href="../MemberGaiKuang.html" title="会员概况">会员概况</a></li>
</ul>
<em class="glyphicon ico-huiyuang"></em>
<span>会员管理</span>
<ul iid="hyi02">
<li><a href="managemembers.html" title="会员列表">会员列表</a></li>
<li><a href="membergrades.html" title="会员等级">会员等级</a></li>
<li><a href="CustomDistributorList.html" title="会员分组设置">会员分组设置</a></li>
<li><a href="MembersIntegralQuery.html" title="会员积分查询">会员积分查询</a></li>
</ul>
<em class="glyphicon ico-huiyuans"></em>
<span>会员积分设置</span>
<ul iid="hyi03">
<li><a href="setScore_sign.html" title="签到送积分">签到送积分</a></li>
<li class=" active"><a href="setScore_shopping.html" title="购物送积分">购物送积分</a></li>
</ul>

            </nav>
        </aside>
    </div>
    <div class="mt20"></div>
</body>
</html>

